package com.qingmeng.apiclientsdk.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.Map;
import java.util.stream.Collectors;

@Configuration // 表明这是一个配置类
@Data // 自动生成getter、setter等方法
@ComponentScan // 扫描当前包及其子包
@ConfigurationProperties(prefix = "api")
public class ApiMethodConfig {
    private Map<String, String> methodMap;

    public Map<String, String> getMethods() {
        return methodMap;
    }

    public void setMethods(Map<String, String> methods) {
        this.methodMap = methods;
    }


}
